#include <Klein/Application/WorkspaceFrame.h>

WorkspaceFrame::WorkspaceFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) :
	wxFrame(parent, id, title, pos, size, style)
{
	SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	mMenuBar = new wxMenuBar;
	SetMenuBar(mMenuBar);
	
	mStatusBar = CreateStatusBar(1, wxST_SIZEGRIP, wxID_WORKSPACE_STATUSBAR);
	wxBoxSizer* canvasSizer = new wxBoxSizer(wxVERTICAL);
	
	mGLCanvas = new GLCanvas(this, wxID_WORKSPACE_CANVAS, glArgs);
	sizer->Add(mCanvas, 0, wxALL, 5);

	SetSizer( sizer );
	Layout();

	Centre( wxBOTH );
}

WorkspaceFrame::~WorkspaceFrame()
{
}
